#include<iostream>
int main()
{
	double m,n,h,h1,sum=0,i;
	scanf("%lf%lf",&m,&n);
	for(i=1;i<=n;i++)
	{
		h=m;
		h/=2;
		sum+=m+h;
		m/=2; 
	}
	sum-=h;
	printf("%.2lf %.2lf\n",h,sum);
	return 0;
}
